﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace NutriLeaf.Web.Core.Food
{
    public interface IFoodIngredient
    {
        void AddFoodIngredient(Model.FoodIngredient foodIngredient, Model.HealthRating healthRating, Model.NutritionInfo nutritionInfo, ref Model.NutriLeafDBEntities context);

        void AddFoodIngredient(string ingredientName, string quantity, string descirption, Model.HealthRating healthRating, Model.NutritionInfo nutritionalInfo, ref Model.NutriLeafDBEntities context);

        void RemoveFoodIngredient(int foodIngredientId, ref Model.NutriLeafDBEntities context);

        List<Model.FoodIngredient> GetFoodIngredientInFood(int foodId, ref Model.NutriLeafDBEntities context);

        void UpdateFoodIngredient(Model.FoodIngredient foodIngredient, Model.HealthRating healthRating, Model.NutritionInfo nutritionInfo, ref Model.NutriLeafDBEntities context);

        List<Model.Food> GetFoodsWithIngredient(int foodIngredientId, ref Model.NutriLeafDBEntities context);

        void AddFoodIngredientToFood(int foodIngredientId, int foodId, ref Model.NutriLeafDBEntities context);

        void RemoveFoodIngredientFromFood(int foodIngredientId, int foodId, ref Model.NutriLeafDBEntities context);


    }
}